/*
** my_strdup.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Fri Mar 23 10:52:17 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:40:18 2012 christophe labonnemartinez
*/

#include "includes/my.h"

char	*my_strdup(const char *str)
{
  int	size;
  char	*copy;

  size = my_strlen(str) + 1;
  copy = xmalloc(size);
  my_strlcpy(copy, str, size);
  return (copy);
}
